<style scoped>
.cards {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.cards .red {
  background-color: #f43f5e;
}

.cards .blue {
  background-color: #3b82f6;
}

.cards .green {
  background-color: #22c55e;
}

.cards .card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  height: 30px;
  width: 250px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: 400ms;
}

.cards .card p.tip {
  font-size: 1em;
  font-weight: 700;
}

.cards .card p.second-text {
  font-size: .7em;
}

.cards .card:hover {
  transform: scale(1.1, 1.1);
}

.cards:hover > .card:not(:hover) {
  filter: blur(10px);
  transform: scale(0.9, 0.9);
}
</style>

<template>
  <div class="cards">
    <div class="card red" @click="redo">
      <p class="tip" >撤销</p>
    </div>
    <div class="card blue" @click="restore">
      <p class="tip">恢复</p>
    </div>
    <div class="card green" @click="preview">
      <p class="tip">预览</p>
    </div>
  </div>
</template>
<script setup lang="ts">
import {NaiveUiUtils} from "@/basic/common/naive-ui/utils.ts";

/**
 * 撤销
 */
function redo(){
  NaiveUiUtils.notification.info({title:'撤销',description:'待实现...',duration: 1000})
}
/**
 * 恢复
 */
function restore(){
  NaiveUiUtils.notification.info({title:'恢复',description:'待实现...',duration: 1000})
}
/**
 * 预览
 */
function preview(){
  NaiveUiUtils.notification.info({title:'预览',description:'待实现...',duration: 1000})
}
</script>
